package day04;

public class day04HomeWork2 {
    public static void main(String[] args) {
        //for循环：输出5次"行动是成功的阶梯"、输出9的乘法表(1到9、1/3/5/7/9、9到1)、累加1到100的和
        for (int t = 0; t < 5; t++) {
            System.out.println("行动是成功的阶梯");
        }

        for (int num = 1; num <= 9; num++) {
            for (int i = 1; i <= num; i++) {
                System.out.print(i + "*" + num + "=" + i * num + "\t");
            }
            System.out.println();
        }
        int sum = 0;
        for (int i = 2; i <= 100; i += 2) {
            sum = sum + i;
        }
        System.out.println(sum);


    }
}
